package com.zhz.model.employee;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhz.common.tool.mybatisplus.base.dal.entity.BasePO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 员工离职
 *
 * @author zhouhengzhe
 * @date 2023/3/21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "em_resignation")
public class EmployeeResignation extends BasePO {

    @TableId(USER_ID)
    @ApiModelProperty("用户ID")
    private String userId;

    @TableField(RESIGNATION_TIME)
    @ApiModelProperty("员工离职时间")
    private String resignationTime;

    @TableField(TYPE_OF_TURNOVER)
    @ApiModelProperty("离职类型")
    private String typeOfTurnover;

    @TableField(REASONS_FOR_LEAVING)
    @ApiModelProperty("申请离职原因")
    private String reasonsForLeaving;

    @ApiModelProperty("补偿金")
    @TableField(COMPENSATION)
    private String compensation;

    @TableField(NOTIFICATIONS)
    @ApiModelProperty("代通知金")
    private String notifications;

    @TableField(SOCIAL_SECURITY_REDUCTION_MONTH)
    @ApiModelProperty("社保减员月")
    private String socialSecurityReductionMonth;

    @TableField(PROVIDENT_FUND_REDUCTION_MONTH)
    @ApiModelProperty("公积金减员月")
    private String providentFundReductionMonth;

    @TableField(PICTURE)
    @ApiModelProperty("图片")
    private String picture;

    public static final String USER_ID = "user_id";

    public static final String RESIGNATION_TIME = "resignation_time";

    public static final String TYPE_OF_TURNOVER = "type_of_turnover";

    public static final String REASONS_FOR_LEAVING = "reasons_for_leaving";

    public static final String COMPENSATION = "compensation";

    public static final String NOTIFICATIONS = "notifications";

    public static final String SOCIAL_SECURITY_REDUCTION_MONTH = "social_security_reduction_month";

    public static final String PROVIDENT_FUND_REDUCTION_MONTH = "provident_fund_reduction_month";

    public static final String PICTURE = "picture";

}